<extend name="Public:base"/>
<block name="title">武汉同兴一站办企业服务有限公司 管理中心 - 商品列表</block>
<block name="header">
    <span class="action-span"><a href="{:U('goods/add')}">商品列表</a></span>
    <span class="action-span1"><a href="{:U('/index.php/Admin')}">武汉同兴一站办企业服务有限公司 管理中心</a></span>
    <span id="search_id" class="action-span1"> - 商品列表 </span>
    <div style="clear:both"></div>
</block>

<block name="body">
<div class="form-div">
    <form action="{:U('index')}" name="searchForm" method="post">
        <img src="__PUBLIC_ADMIN__/Images/icon_search.gif" width="26" height="22" border="0" alt="search" />
        <!-- 分类 -->
        <select name="type_id">

            <option  name="type_id" value="0">|&#45;&#45;请选择</option>
            <volist name="type" id="vo">
                <option  name="type_id" value="{$vo.class_id}"/>|&#45;&#45;{$vo.name}</option>
            </volist>
            
        </select>

        <!-- 推荐 -->
      <!--  <select name="intro_type">
            <option value="0">全部</option>
            <option value="is_rec" <eq name="Think.get.intro_type" value="is_rec">selected="selected"</eq>>推荐</option>
            <option value="is_new" <eq name="Think.get.intro_type" value="is_new">selected="selected"</eq>>新品</option>
            <option value="is_hot" <eq name="Think.get.intro_type" value="is_hot">selected="selected"</eq>>热销</option>
        </select>-->
        <!-- 上架 -->
     <!--   <select name="is_sale">
            <option value='0' >全部</option>
            <option value="1" <eq name="Think.get.is_sale" value="1">selected="selected"</eq>>上架</option>
            <option value="2" <eq name="Think.get.is_sale" value="2">selected="selected"</eq>>下架</option>
        </select>-->
        <!-- 关键字 -->
        关键字 <input type="text" name="goods_name" size="15" value=""/>
        <input type="submit" value="搜索 " class="button" />
    </form>
</div>

<!-- 商品列表 -->

    <div class="list-div" id="listDiv">
        <table cellpadding="3" cellspacing="1">
            <tr>
                <th>编号</th>
                <th>商品分类</th>
                <th>商品名称</th>
                <th>商品图片</th>
                <th>商品简介</th>
                <th>商品属性</th>
                <th>VIP专属</th>
                <th>上级会员的返利的积分</th>
                <th>上级会员的上级会员返利的积分</th>
                <th>状态</th>
                <th>加入时间</th>
                <th>成交量</th>
                <th>操作</th>
            </tr>

            <volist name="list" key="goodsID" id="vo">
            <tr>
                <td align="center">{$goodsID}</td>
                <td align="center" class="first-cell"><span>{$vo.name}</span></td>
                <td align="center"><span onclick="">{$vo.goods_name}</span></td>
                <td align="center"><img style="width: 200px;height: 150px;display: block" src="{$vo.goods_img}"></td>
                <td align="center"><span>{$vo.goods_intro}</span></td>
                <td align="center"><span>{$vo.attribute}</span></td>
                <if condition="$vo['vip_exclusive'] eq 0">
                <td align="center"><span>普通用户</span></td>
                    <else />
                    <td align="center"><span>{$vo.vip_exclusive}级商品</span></td>
                </if>
                <td align="center"><span>{$vo.superior_user_integral}</span></td>
                <td align="center"><span>{$vo.supervisor_user_integral}</span></td>
                <td align="center"><img src="__PUBLIC_ADMIN__/Images/<eq name='vo.state' value='1'>yes.gif<else/>no.gif</eq>"/></td>
                <td align="center"><span>{$vo.insert_time|date="Y-m-d H:i:s",###}</span></td>
                <td align="center"><span>{$vo.volume}</span></td>
                <td align="center">

                <a href="{:U('edit','goods_id='.$vo['goods_id'])}" title="编辑"><img src="__PUBLIC_ADMIN__/Images/icon_edit.gif" width="16" height="16" border="0" /></a>
                <a href="{:U('dels','goods_id='.$vo['goods_id'])}" onclick="" title="回收站"><img src="__PUBLIC_ADMIN__/Images/icon_trash.gif" width="16" height="16" border="0" /></a></td>
            </tr>
            </volist>
        </table>

        <!-- 分页开始 -->
        <table id="page-table" cellspacing="0">
            <tr>
                <td width="80%">&nbsp;</td>
                <td align="center" nowrap="true">
                    {$data.pageStr}
                </td>
            </tr>
        </table>
    <!-- 分页结束 -->
    </div>
</block>

